<include file="Public/min-header"/><include file="Public/min-header"/>
<link href="__PUBLIC__/plugins/daterangepicker/daterangepicker-bs3.css" rel="stylesheet" type="text/css" />
<script src="__PUBLIC__/plugins/daterangepicker/moment.min.js" type="text/javascript"></script>
<script src="__PUBLIC__/plugins/daterangepicker/daterangepicker.js" type="text/javascript"></script>
<!--物流配置 css -start-->
<style>
    ul.group-list {
        width: 96%;min-width: 1000px; margin: auto 5px;list-style: disc outside none;
    }
    ul.group-list li {
        white-space: nowrap;float: left;
        width: 150px; height: 25px;
        padding: 3px 5px;list-style-type: none;
        list-style-position: outside;border: 0px;margin: 0px;
    }
</style>
<!--物流配置 css -end-->

<!--以下是在线编辑器 代码 -->
<script type="text/javascript">
    /*
     * 在线编辑器相 关配置 js
     *  参考 地址 http://fex.baidu.com/ueditor/
     */
    window.UEDITOR_Admin_URL = "__ROOT__/Public/plugins/Ueditor/";
    var URL_upload = "{$URL_upload}";
    var URL_fileUp = "{$URL_fileUp}";
    var URL_scrawlUp = "{$URL_scrawlUp}";
    var URL_getRemoteImage = "{$URL_getRemoteImage}";
    var URL_imageManager = "{$URL_imageManager}";
    var URL_imageUp = "{$URL_imageUp}";
    var URL_getMovie = "{$URL_getMovie}";
    var URL_home = "{$URL_home}";
</script>
<script type="text/javascript" charset="utf-8" src="__ROOT__/Public/plugins/Ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="__ROOT__/Public/plugins/Ueditor/ueditor.all.min.js"> </script>
<script type="text/javascript" charset="utf-8" src="__ROOT__/Public/plugins/Ueditor/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript">

    var editor;
    $(function () {
        //具体参数配置在  editor_config.js  中
        var options = {
            zIndex: 999,
            initialFrameWidth: "95%", //初化宽度
            initialFrameHeight: 400, //初化高度
            focus: false, //初始化时，是否让编辑器获得焦点true或false
            maximumWords: 99999, removeFormatAttributes: 'class,style,lang,width,height,align,hspace,valign'
            , //允许的最大字符数 'fullscreen',
            pasteplain:false, //是否默认为纯文本粘贴。false为不使用纯文本粘贴，true为使用纯文本粘贴
            autoHeightEnabled: true
            /*   autotypeset: {
             mergeEmptyline: true,        //合并空行
             removeClass: true,           //去掉冗余的class
             removeEmptyline: false,      //去掉空行
             textAlign: "left",           //段落的排版方式，可以是 left,right,center,justify 去掉这个属性表示不执行排版
             imageBlockLine: 'center',    //图片的浮动方式，独占一行剧中,左右浮动，默认: center,left,right,none 去掉这个属性表示不执行排版
             pasteFilter: false,          //根据规则过滤没事粘贴进来的内容
             clearFontSize: false,        //去掉所有的内嵌字号，使用编辑器默认的字号
             clearFontFamily: false,      //去掉所有的内嵌字体，使用编辑器默认的字体
             removeEmptyNode: false,      //去掉空节点
             //可以去掉的标签
             removeTagNames: {"font": 1},
             indent: false,               // 行首缩进
             indentValue: '0em'           //行首缩进的大小
             }*/,
            toolbars: [
                ['fullscreen', 'source', '|', 'undo', 'redo',
                    '|', 'bold', 'italic', 'underline', 'fontborder',
                    'strikethrough', 'superscript', 'subscript',
                    'removeformat', 'formatmatch', 'autotypeset',
                    'blockquote', 'pasteplain', '|', 'forecolor',
                    'backcolor', 'insertorderedlist',
                    'insertunorderedlist', 'selectall', 'cleardoc', '|',
                    'rowspacingtop', 'rowspacingbottom', 'lineheight', '|',
                    'customstyle', 'paragraph', 'fontfamily', 'fontsize',
                    '|', 'directionalityltr', 'directionalityrtl',
                    'indent', '|', 'justifyleft', 'justifycenter',
                    'justifyright', 'justifyjustify', '|', 'touppercase',
                    'tolowercase', '|', 'link', 'unlink', 'anchor', '|',
                    'imagenone', 'imageleft', 'imageright', 'imagecenter',
                    '|', 'insertimage', 'emotion', 'insertvideo',
                    'attachment', 'map', 'gmap', 'insertframe',
                    'insertcode', 'webapp', 'pagebreak', 'template',
                    'background', '|', 'horizontal', 'date', 'time',
                    'spechars', 'wordimage', '|',
                    'inserttable', 'deletetable',
                    'insertparagraphbeforetable', 'insertrow', 'deleterow',
                    'insertcol', 'deletecol', 'mergecells', 'mergeright',
                    'mergedown', 'splittocells', 'splittorows',
                    'splittocols', '|', 'print', 'preview', 'searchreplace']
            ]
        };
        editor = new UE.ui.Editor(options);
        editor.render("goods_content");  //  指定 textarea 的  id 为 goods_content

    });
</script>
<!--以上是在线编辑器 代码  end-->
<div class="wrapper">
    <include file="Public/breadcrumb"/>
    <section class="content">
        <!-- Main content -->
        <div class="container-fluid">
            <div class="pull-right">
                <a href="javascript:history.go(-1)" data-toggle="tooltip" title="" class="btn btn-default" data-original-title="返回"><i class="fa fa-reply"></i></a>
                <!--<a href="javascript:;" class="btn btn-default" data-url="http://www.tp-shop.cn/Doc/Index/article/id/1007/developer/user.html" onclick="get_help(this)"><i class="fa fa-question-circle"></i> 帮助</a>-->
            </div>
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title"><i class="fa fa-list"></i>店铺详情</h3>
                </div>
                <div class="panel-body">
                    <ul class="nav nav-tabs">
                        <li class="active"><a href="#tab_tongyong" data-toggle="tab">店铺信息</a></li>
                        <!--<li><a href="#tab_goods_desc" data-toggle="tab">描述信息</a></li>-->
                        <!--<li><a href="#tab_shangbiao" data-toggle="tab">商标信息</a></li>-->
                        <li><a href="#tab_gongsi" data-toggle="tab">公司信息</a></li>
                        <!--<li><a href="#tab_goods_spec" data-toggle="tab">商品规格</a></li>-->
                        <!--<li><a href="#tab_goods_attr" data-toggle="tab">商品属性</a></li>-->
                        <if condition="$goodsInfo[user_id] gt 0">
                            <li><a href="#tab_buyer" data-toggle="tab">卖家详细信息</a></li>
                        </if>



                        <!--<li><a href="#tab_goods_tem" data-toggle="tab">商品尺寸表</a></li>-->
                        <!--<li style="display: none;"><a href="#tab_goods_shipping" data-toggle="tab">商品物流</a></li>-->
                    </ul>
                    <!--表单数据-->
                    <form method="post" id="addEditGoodsForm">

                        <!--通用信息-->
                        <div class="tab-content">

                            <div class="tab-pane active" id="tab_tongyong">

                                <table class="table table-bordered">
                                    <tbody>


                                    <tr>
                                        <td>所在平台:</td>

                                        <td>
                                            <select name="goods_type" id="goods_type" onchange="set_goods_attr()" class="form-control" style="width:250px;">
                                                <option value="0">选择商品属性</option>
                                                <foreach name="goodsType" item="vo" key="k" >
                                                    <option value="{$vo.id}"<if condition="$goodsInfo[goods_type] eq $vo[id]"> selected="selected" </if> >{$vo.name}</option>
                                                </foreach>
                                            </select>
                                            <span id="err_goods_type" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>











                                    </tbody>
                                </table>

                                <table id="tm_table" class="table table-bordered" style="display:none;" >
                                    <tbody>

                                    <tr >
                                        <td>商标类型:</td>
                                        <td>
                                            <select name="store_type"  class="form-control" style="width:250px;">
                                                <option value="0">选择商标类型</option>
                                                <foreach name="storeType_tm" item="vv1" key="kk1" >
                                                    <option value="{$kk1}"<if condition="$goodsInfo[store_type] eq $kk1"> selected="selected" </if> >{$vv1}</option>
                                                </foreach>
                                            </select>
                                        </td>
                                    </tr>
                                    <tr >
                                        <td>注册类型:</td>
                                        <td>
                                            <select name="store_type" class="form-control" style="width:250px;">
                                                <option value="0">选择注册类型</option>
                                                <foreach name="storeType_jd" item="vv2" key="kk2" >
                                                    <option value="{$kk2}"<if condition="$goodsInfo[store_type] eq $kk2"> selected="selected" </if> >{$vv2}</option>
                                                </foreach>
                                            </select>
                                        </td>
                                    </tr>
                                    <tr >
                                        <td>商标类型:</td>
                                        <td>
                                            <select name="brand_type" id="brand_type" class="form-control" style="width:250px;">
                                                <option value="0">选择商标类型</option>
                                                <foreach name="brandType" item="vo" key="k" >
                                                    <option value="{$k}"<if condition="$goodsInfo[brand_type] eq $k"> selected="selected" </if> >{$vo}</option>
                                                </foreach>
                                            </select>

                                        </td>
                                    </tr>


                                    <tr>
                                        <td>所属行业:</td>

                                        <td>
                                            <select name="trade_type" id="trade_type" class="form-control" style="width:250px;">
                                                <option value="0">选择所属行业</option>
                                                <foreach name="goodsTrade" item="vo1" key="k1" >
                                                    <option value="{$k1}"<if condition="$goodsInfo[trade_type] eq $k1"> selected="selected" </if> >{$vo1}</option>
                                                </foreach>
                                            </select>

                                            <span id="err_trade_type" style="color:#F00; display:none;"></span>

                                        </td>
                                    </tr>

                                    <tr>
                                        <td>所在地区:</td>

                                        <td>
                                            <select name="area_type" id="area_type" class="form-control" style="width:250px;">
                                                <option value="0">选择所在地区</option>
                                                <foreach name="goodsArea" item="vo2" key="k2" >
                                                    <option value="{$k2}"<if condition="$goodsInfo[area_type] eq $k2"> selected="selected" </if> >{$vo2}</option>
                                                </foreach>
                                            </select>

                                            <span id="err_area_type" style="color:#F00; display:none;"></span>

                                        </td>
                                    </tr>
                                    <tr>
                                        <td>价格区间:</td>
                                        <td>
                                            <select name="price_type" id="price_type" class="form-control" style="width:250px;">
                                                <option value="0">选择价格区间</option>
                                                <foreach name="priceType" item="vo3" key="k3" >
                                                    <option value="{$k3}"<if condition="$goodsInfo[price_type] eq $k3"> selected="selected" </if> >{$vo3}</option>
                                                </foreach>
                                            </select>

                                            <span id="err_price_type" style="color:#F00; display:none;"></span>

                                        </td>
                                    </tr>





                                    <tr>
                                        <td>店铺名称:</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.seller_name}" name="seller_name" class="form-control" style="width:550px;"/>
                                            <span id="err_seller_name" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>店铺信息标题:</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.seller_title}" name="seller_title" class="form-control" style="width:550px;"/>
                                            <span id="err_seller_title" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>


                                    <tr>
                                        <td>店铺详细描述:</td>
                                        <td>

                                            <textarea rows="6" cols="80" name="seller_describe">{$goodsInfo.seller_describe}</textarea>
                                            <span id="err_seller_describe" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>卖家寄语:</td>
                                        <td>

                                            <textarea rows="6" cols="80" name="seller_send_word">{$goodsInfo.seller_send_word}</textarea>
                                            <span id="err_seller_send_word" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>

                                    <tr>
                                        <td>开店时间</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.start_time}" readonly name="start_time" id="start_time" class="form-control" style="width:350px;"/>
                                            <span id="err_start_time" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>

                                    <tr>
                                        <td>一级类目:</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.epmi}" placeholder="多个类目用,隔开" name="epmi" class="form-control" style="width:550px;"/>
                                            <span id="err_epmi" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>当前主营</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.now_business}" placeholder="当前主营." name="now_business" class="form-control" style="width:350px;"/>
                                            <span id="err_now_business" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>

                                    <!--   <tr>
                                           <td>地址:</td>
                                           <td>
                                               <div class="form-group ">
                                                   <div class="col-xs-2">
                                                       <select onchange="get_city(this)" id="province" name="province" class="form-control">
                                                           <option  value="0">选择省份</option>
                                                           <volist name="province" id="vo">
                                                               <option value="{$vo.id}" <if condition="$goodsInfo['province'] eq $vo[id]">selected="selected" </if> >{$vo.name}</option>
                                                           </volist>
                                                       </select>
                                                   </div>
                                                   <div class="col-xs-2">
                                                       <select onchange="get_area(this)" id="city" name="city" class="form-control">
                                                           <option value="0">选择城市</option>
                                                           <volist name="city" id="vo">
                                                               <option value="{$vo.id}" <if condition="$goodsInfo['city'] eq $vo[id]">selected="selected" </if> >{$vo.name}</option>
                                                           </volist>
                                                       </select>
                                                   </div>


                                                   &lt;!&ndash;<div class="col-xs-2">
                                                       <select id="district" name="district" class="form-control">
                                                           <option value="0">选择区域</option>
                                                           <volist name="area" id="vo">
                                                               <option value="{$vo.id}" <if condition="$goodsInfo['district'] eq $vo[id]">selected="selected" </if>>{$vo.name}</option>
                                                           </volist>
                                                       </select>
                                                   </div>&ndash;&gt;
                                               </div>
                                               <span id="err_district" style="color:#F00; display:none;"></span>

                                           </td>
                                       </tr>-->
                                    <tr>
                                        <td>店铺详细地址</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.address}" name="address" class="form-control" style="width:350px;"/>
                                            <span id="err_address" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>


                                    <tr>
                                        <td>特价商品:</td>
                                        <td>
                                            否:<input type="radio" <if condition="$goodsInfo[ is_discount] eq 0">checked="checked"</if> value="0" name=" is_discount" />&nbsp;&nbsp;&nbsp;
                                            是:<input type="radio" <if condition="$goodsInfo[ is_discount] eq 1">checked="checked"</if> value="1" name=" is_discount" />
                                        </td>
                                    </tr>

                                    <tr>
                                        <td>售价</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.price}" name="price" class="form-control" style="width:350px;"/>
                                            <span id="err_price" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>

                                    <!--<tr>
                                        <td>特价<br/><span style="color:red">(此处输入价格时，按照此价格计算)</span></td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.sp_price}" name="sp_price" class="form-control" style="width:350px;"/>
                                        </td>
                                    </tr>-->
                                    <tr>
                                        <td>保证金</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.b_price}" name="b_price" class="form-control" style="width:350px;"/>
                                            <span id="err_b_price" style="color:#F00; display:none;"></span>

                                            可退:<input type="radio" <if condition="$goodsInfo[b_price_type] eq 0">checked="checked"</if> value="0" name="b_price_type" />&nbsp;&nbsp;&nbsp;
                                            不可退:<input type="radio" <if condition="$goodsInfo[b_price_type] eq 1">checked="checked"</if> value="1" name="b_price_type" />
                                        </td>
                                    </tr>

                                    <tr>
                                        <td>技术年费</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.j_price}" name="j_price" class="form-control" style="width:350px;"/>
                                            <span id="err_j_price" style="color:#F00; display:none;"></span>

                                            可退:<input type="radio" <if condition="$goodsInfo[j_price_type] eq 0">checked="checked"</if> value="0" name="j_price_type" />&nbsp;&nbsp;&nbsp;
                                            不可退:<input type="radio" <if condition="$goodsInfo[j_price_type] eq 1">checked="checked"</if> value="1" name="j_price_type" />
                                        </td>
                                    </tr>

                                    <tr>
                                        <td>信用额度</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.xinyong_price}" placeholder="信用额度" name="xinyong_price" class="form-control" style="width:350px;"/>
                                            <span id="err_xinyong_price" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>



                                    <tr>
                                        <td>使用中贷款</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.dk_price}" placeholder="使用中贷款" name="dk_price" class="form-control" style="width:350px;"/>
                                            <span id="err_dk_price" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>完成营业额指标</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.acc_money}" placeholder="完成营业额指标" name="acc_money" class="form-control" style="width:350px;"/>
                                            <span id="err_acc_money" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>


                                    <tr>
                                        <td>是否自有品牌:</td>
                                        <td>
                                            自有品牌:<input type="radio" <if condition="$goodsInfo[manage_type] eq 0">checked="checked"</if> value="0" name="manage_type" />&nbsp;&nbsp;&nbsp;
                                            代理品牌:<input type="radio" <if condition="$goodsInfo[manage_type] eq 1">checked="checked"</if> value="1" name="manage_type" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>可提供证件:</td>
                                        <td>
                                            <input type="checkbox" <php>if(in_array('身份证',$papers_arr)){</php>checked="checked"<php>}</php> value="身份证" name="papers[]" />身份证 &nbsp;&nbsp;&nbsp;
                                            <input type="checkbox" <php>if(in_array('手持身份证',$papers_arr)){</php>checked="checked"<php>}</php> value="手持身份证" name="papers[]" />手持身份证&nbsp;&nbsp;&nbsp;
                                            <input type="checkbox" <php>if(in_array('营业执照',$papers_arr)){</php>checked="checked"<php>}</php> value="营业执照" name="papers[]" />营业执照&nbsp;&nbsp;&nbsp;
                                            <input type="checkbox" <php>if(in_array('手持营业执照',$papers_arr)){</php>checked="checked"<php>}</php> value="手持营业执照" name="papers[]" />手持营业执照&nbsp;&nbsp;&nbsp;

                                        </td>
                                    </tr>

                                    <tr>
                                        <td>违规记录</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.weigui_log}" placeholder="示例：1-2-3" name="weigui_log" class="form-control" style="width:350px;"/>
                                            <span id="err_weigui_log" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>动态评分</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.dongtai_score}" placeholder="示例：4.9/4.9/4.9" name="dongtai_score" class="form-control" style="width:350px;"/>
                                            <span id="err_dongtai_score" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>



                                    <!-- <tr>
                                         <td>上传封面图片:</td>
                                         <td>
                                             <input type="button" value="上传图片"  onclick="GetUploadify(1,'','goods','call_back1');"/>
                                             <input type="text" class="input-sm"  name="original_img" id="original_img" value="{$goodsInfo.original_img}"/>
                                             <if condition="$goodsInfo['original_img'] neq null">
                                                 &nbsp;&nbsp;
                                                 <a target="_blank" href="{$goodsInfo.original_img}" id="original_img1">
                                                     <img width="25" height="25" src="/Public/images/image_icon.jpg">
                                                 </a>
                                             </if>
                                             <span id="err_original_img" style="color:#F00; display:none;"></span>
                                         </td>
                                     </tr>-->



                                    <tr>
                                        <td>营业额图片:</td>
                                        <td>
                                            <input type="button" value="上传图片"  onclick="GetUploadify(1,'','goods','call_back2');"/>
                                            <input type="text" class="input-sm"  name="yingyee_img" id="yingyee_img" value="{$goodsInfo.yingyee_img}"/>
                                            <if condition="$goodsInfo['yingyee_img'] neq null">
                                                &nbsp;&nbsp;
                                                <a target="_blank" href="{$goodsInfo.yingyee_img}" id="yingyee_img1">
                                                    <img width="25" height="25" src="/Public/images/image_icon.jpg">
                                                </a>
                                            </if>
                                            <span id="err_yingyee_img" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>一级类目图片:</td>
                                        <td>
                                            <input type="button" value="上传图片"  onclick="GetUploadify(1,'','goods','call_back3');"/>
                                            <input type="text" class="input-sm"  name="yijileimu_img" id="yijileimu_img" value="{$goodsInfo.yijileimu_img}"/>
                                            <if condition="$goodsInfo['yijileimu_img'] neq null">
                                                &nbsp;&nbsp;
                                                <a target="_blank" href="{$goodsInfo.yijileimu_img}" id="yijileimu_img1">
                                                    <img width="25" height="25" src="/Public/images/image_icon.jpg">
                                                </a>
                                            </if>
                                            <span id="err_yijileimu_img" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>历史扣分图片:</td>
                                        <td>
                                            <input type="button" value="上传图片"  onclick="GetUploadify(1,'','goods','call_back4');"/>
                                            <input type="text" class="input-sm"  name="lishikoufen_img" id="lishikoufen_img" value="{$goodsInfo.lishikoufen_img}"/>
                                            <if condition="$goodsInfo['lishikoufen_img'] neq null">
                                                &nbsp;&nbsp;
                                                <a target="_blank" href="{$goodsInfo.lishikoufen_img}" id="lishikoufen_img1">
                                                    <img width="25" height="25" src="/Public/images/image_icon.jpg">
                                                </a>
                                            </if>
                                            <span id="err_lishikoufen_img" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>续签考核图片:</td>
                                        <td>
                                            <input type="button" value="上传图片"  onclick="GetUploadify(1,'','goods','call_back5');"/>
                                            <input type="text" class="input-sm"  name="xuqiankaoke_img" id="xuqiankaoke_img" value="{$goodsInfo.xuqiankaoke_img}"/>
                                            <if condition="$goodsInfo['xuqiankaoke_img'] neq null">
                                                &nbsp;&nbsp;
                                                <a target="_blank" href="{$goodsInfo.xuqiankaoke_img}" id="xuqiankaoke_img1">
                                                    <img width="25" height="25" src="/Public/images/image_icon.jpg">
                                                </a>
                                            </if>
                                            <span id="err_xuqiankaoke_img" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>



                                    <tr>
                                        <td>商标名称:</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.brand_name}" placeholder="多个用,隔开"  name="brand_name" class="form-control" style="width:550px;"/>
                                            <span id="err_brand_name" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>商标所属类别:</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.brand_info}" placeholder="示例：1,3,5  多个用,隔开"  name="brand_info" class="form-control" style="width:550px;"/>
                                            <span id="err_brand_name" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>

                                    <tr>
                                        <td>商标持有者:</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.brand_holder}" name="brand_holder" class="form-control" style="width:550px;"/>
                                            <span id="err_brand_holder" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>商标持有者类型:</td>
                                        <td>
                                            公司:<input type="radio" <if condition="$goodsInfo[brand_holder_type] eq 0">checked="checked"</if> value="0" name="brand_holder_type" />&nbsp;&nbsp;&nbsp;
                                            法人:<input type="radio" <if condition="$goodsInfo[brand_holder_type] eq 1">checked="checked"</if> value="1" name="brand_holder_type" />&nbsp;&nbsp;&nbsp;
                                            其他人:<input type="radio" <if condition="$goodsInfo[brand_holder_type] eq 2">checked="checked"</if> value="2" name="brand_holder_type" />&nbsp;&nbsp;&nbsp;
                                        </td>
                                    </tr>

                                    <tr>
                                        <td>商标是否过户:</td>
                                        <td>
                                            否:<input type="radio" <if condition="$goodsInfo[is_shift] eq 0">checked="checked"</if> value="0" name="is_shift" />&nbsp;&nbsp;&nbsp;
                                            是:<input type="radio" <if condition="$goodsInfo[is_shift] eq 1">checked="checked"</if> value="1" name="is_shift" />
                                        </td>
                                    </tr>

                                    <tr>
                                        <td> 是否存在债务纠纷:</td>
                                        <td>
                                            无:<input type="radio" <if condition="$goodsInfo[zw_status] eq 0">checked="checked"</if> value="0" name="zw_status" />&nbsp;&nbsp;&nbsp;
                                            有:<input type="radio" <if condition="$goodsInfo[zw_status] eq 1">checked="checked"</if> value="1" name="zw_status" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>月利润:</td>
                                        <td>
                                            无:<input type="radio" <if condition="$goodsInfo[y_profit] eq 0">checked="checked"</if> value="0" name="y_profit" />&nbsp;&nbsp;&nbsp;
                                            有:<input type="radio" <if condition="$goodsInfo[y_profit] eq 1">checked="checked"</if> value="1" name="y_profit" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>是否带货出售:</td>
                                        <td>
                                            否:<input type="radio" <if condition="$goodsInfo[cum_goods] eq 0">checked="checked"</if> value="0" name="cum_goods" />&nbsp;&nbsp;&nbsp;
                                            是:<input type="radio" <if condition="$goodsInfo[cum_goods] eq 1">checked="checked"</if> value="1" name="cum_goods" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td> 是否提供货源:</td>
                                        <td>
                                            否:<input type="radio" <if condition="$goodsInfo[hy_status] eq 0">checked="checked"</if> value="0" name="hy_status" />&nbsp;&nbsp;&nbsp;
                                            是:<input type="radio" <if condition="$goodsInfo[hy_status] eq 1">checked="checked"</if> value="1" name="hy_status" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>是否带团队转让 :</td>
                                        <td>
                                            否:<input type="radio" <if condition="$goodsInfo[zrtd_status] eq 0">checked="checked"</if> value="0" name="zrtd_status" />&nbsp;&nbsp;&nbsp;
                                            是:<input type="radio" <if condition="$goodsInfo[zrtd_status] eq 1">checked="checked"</if> value="1" name="zrtd_status" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>是否授权经营经验 :</td>
                                        <td>
                                            否:<input type="radio" <if condition="$goodsInfo[jyjy_status] eq 0">checked="checked"</if> value="0" name="jyjy_status" />&nbsp;&nbsp;&nbsp;
                                            是:<input type="radio" <if condition="$goodsInfo[jyjy_status] eq 1">checked="checked"</if> value="1" name="jyjy_status" />
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>

                                <table id="tb_table" class="table table-bordered" style="display:none;" >
                                    <tbody>

                                    <tr >
                                        <td>商标类型:</td>
                                        <td>
                                            <select name="store_type"  class="form-control" style="width:250px;">
                                                <option value="0">选择商标类型</option>
                                                <foreach name="storeType_tm" item="vv1" key="kk1" >
                                                    <option value="{$kk1}"<if condition="$goodsInfo[store_type] eq $kk1"> selected="selected" </if> >{$vv1}</option>
                                                </foreach>
                                            </select>
                                        </td>
                                    </tr>
                                    <tr >
                                        <td>注册类型:</td>
                                        <td>
                                            <select name="store_type" class="form-control" style="width:250px;">
                                                <option value="0">选择注册类型</option>
                                                <foreach name="storeType_jd" item="vv2" key="kk2" >
                                                    <option value="{$kk2}"<if condition="$goodsInfo[store_type] eq $kk2"> selected="selected" </if> >{$vv2}</option>
                                                </foreach>
                                            </select>
                                        </td>
                                    </tr>
                                    <tr >
                                        <td>商标类型:</td>
                                        <td>
                                            <select name="brand_type" id="brand_type" class="form-control" style="width:250px;">
                                                <option value="0">选择商标类型</option>
                                                <foreach name="brandType" item="vo" key="k" >
                                                    <option value="{$k}"<if condition="$goodsInfo[brand_type] eq $k"> selected="selected" </if> >{$vo}</option>
                                                </foreach>
                                            </select>

                                        </td>
                                    </tr>


                                    <tr>
                                        <td>所属行业:</td>

                                        <td>
                                            <select name="trade_type" id="trade_type" class="form-control" style="width:250px;">
                                                <option value="0">选择所属行业</option>
                                                <foreach name="goodsTrade" item="vo1" key="k1" >
                                                    <option value="{$k1}"<if condition="$goodsInfo[trade_type] eq $k1"> selected="selected" </if> >{$vo1}</option>
                                                </foreach>
                                            </select>

                                            <span id="err_trade_type" style="color:#F00; display:none;"></span>

                                        </td>
                                    </tr>

                                    <tr>
                                        <td>所在地区:</td>

                                        <td>
                                            <select name="area_type" id="area_type" class="form-control" style="width:250px;">
                                                <option value="0">选择所在地区</option>
                                                <foreach name="goodsArea" item="vo2" key="k2" >
                                                    <option value="{$k2}"<if condition="$goodsInfo[area_type] eq $k2"> selected="selected" </if> >{$vo2}</option>
                                                </foreach>
                                            </select>

                                            <span id="err_area_type" style="color:#F00; display:none;"></span>

                                        </td>
                                    </tr>
                                    <tr>
                                        <td>价格区间:</td>
                                        <td>
                                            <select name="price_type" id="price_type" class="form-control" style="width:250px;">
                                                <option value="0">选择价格区间</option>
                                                <foreach name="priceType" item="vo3" key="k3" >
                                                    <option value="{$k3}"<if condition="$goodsInfo[price_type] eq $k3"> selected="selected" </if> >{$vo3}</option>
                                                </foreach>
                                            </select>

                                            <span id="err_price_type" style="color:#F00; display:none;"></span>

                                        </td>
                                    </tr>





                                    <tr>
                                        <td>店铺名称:</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.seller_name}" name="seller_name" class="form-control" style="width:550px;"/>
                                            <span id="err_seller_name" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>店铺信息标题:</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.seller_title}" name="seller_title" class="form-control" style="width:550px;"/>
                                            <span id="err_seller_title" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>


                                    <tr>
                                        <td>店铺详细描述:</td>
                                        <td>

                                            <textarea rows="6" cols="80" name="seller_describe">{$goodsInfo.seller_describe}</textarea>
                                            <span id="err_seller_describe" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>卖家寄语:</td>
                                        <td>

                                            <textarea rows="6" cols="80" name="seller_send_word">{$goodsInfo.seller_send_word}</textarea>
                                            <span id="err_seller_send_word" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>

                                    <tr>
                                        <td>开店时间</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.start_time}" readonly name="start_time" id="start_time" class="form-control" style="width:350px;"/>
                                            <span id="err_start_time" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>

                                    <tr>
                                        <td>一级类目:</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.epmi}" placeholder="多个类目用,隔开" name="epmi" class="form-control" style="width:550px;"/>
                                            <span id="err_epmi" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>当前主营</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.now_business}" placeholder="当前主营." name="now_business" class="form-control" style="width:350px;"/>
                                            <span id="err_now_business" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>

                                    <!--   <tr>
                                           <td>地址:</td>
                                           <td>
                                               <div class="form-group ">
                                                   <div class="col-xs-2">
                                                       <select onchange="get_city(this)" id="province" name="province" class="form-control">
                                                           <option  value="0">选择省份</option>
                                                           <volist name="province" id="vo">
                                                               <option value="{$vo.id}" <if condition="$goodsInfo['province'] eq $vo[id]">selected="selected" </if> >{$vo.name}</option>
                                                           </volist>
                                                       </select>
                                                   </div>
                                                   <div class="col-xs-2">
                                                       <select onchange="get_area(this)" id="city" name="city" class="form-control">
                                                           <option value="0">选择城市</option>
                                                           <volist name="city" id="vo">
                                                               <option value="{$vo.id}" <if condition="$goodsInfo['city'] eq $vo[id]">selected="selected" </if> >{$vo.name}</option>
                                                           </volist>
                                                       </select>
                                                   </div>


                                                   &lt;!&ndash;<div class="col-xs-2">
                                                       <select id="district" name="district" class="form-control">
                                                           <option value="0">选择区域</option>
                                                           <volist name="area" id="vo">
                                                               <option value="{$vo.id}" <if condition="$goodsInfo['district'] eq $vo[id]">selected="selected" </if>>{$vo.name}</option>
                                                           </volist>
                                                       </select>
                                                   </div>&ndash;&gt;
                                               </div>
                                               <span id="err_district" style="color:#F00; display:none;"></span>

                                           </td>
                                       </tr>-->
                                    <tr>
                                        <td>店铺详细地址</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.address}" name="address" class="form-control" style="width:350px;"/>
                                            <span id="err_address" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>


                                    <tr>
                                        <td>特价商品:</td>
                                        <td>
                                            否:<input type="radio" <if condition="$goodsInfo[ is_discount] eq 0">checked="checked"</if> value="0" name=" is_discount" />&nbsp;&nbsp;&nbsp;
                                            是:<input type="radio" <if condition="$goodsInfo[ is_discount] eq 1">checked="checked"</if> value="1" name=" is_discount" />
                                        </td>
                                    </tr>

                                    <tr>
                                        <td>售价</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.price}" name="price" class="form-control" style="width:350px;"/>
                                            <span id="err_price" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>

                                    <!--<tr>
                                        <td>特价<br/><span style="color:red">(此处输入价格时，按照此价格计算)</span></td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.sp_price}" name="sp_price" class="form-control" style="width:350px;"/>
                                        </td>
                                    </tr>-->
                                    <tr>
                                        <td>保证金</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.b_price}" name="b_price" class="form-control" style="width:350px;"/>
                                            <span id="err_b_price" style="color:#F00; display:none;"></span>

                                            可退:<input type="radio" <if condition="$goodsInfo[b_price_type] eq 0">checked="checked"</if> value="0" name="b_price_type" />&nbsp;&nbsp;&nbsp;
                                            不可退:<input type="radio" <if condition="$goodsInfo[b_price_type] eq 1">checked="checked"</if> value="1" name="b_price_type" />
                                        </td>
                                    </tr>

                                    <tr>
                                        <td>技术年费</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.j_price}" name="j_price" class="form-control" style="width:350px;"/>
                                            <span id="err_j_price" style="color:#F00; display:none;"></span>

                                            可退:<input type="radio" <if condition="$goodsInfo[j_price_type] eq 0">checked="checked"</if> value="0" name="j_price_type" />&nbsp;&nbsp;&nbsp;
                                            不可退:<input type="radio" <if condition="$goodsInfo[j_price_type] eq 1">checked="checked"</if> value="1" name="j_price_type" />
                                        </td>
                                    </tr>

                                    <tr>
                                        <td>信用额度</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.xinyong_price}" placeholder="信用额度" name="xinyong_price" class="form-control" style="width:350px;"/>
                                            <span id="err_xinyong_price" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>



                                    <tr>
                                        <td>使用中贷款</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.dk_price}" placeholder="使用中贷款" name="dk_price" class="form-control" style="width:350px;"/>
                                            <span id="err_dk_price" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>完成营业额指标</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.acc_money}" placeholder="完成营业额指标" name="acc_money" class="form-control" style="width:350px;"/>
                                            <span id="err_acc_money" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>


                                    <tr>
                                        <td>是否自有品牌:</td>
                                        <td>
                                            自有品牌:<input type="radio" <if condition="$goodsInfo[manage_type] eq 0">checked="checked"</if> value="0" name="manage_type" />&nbsp;&nbsp;&nbsp;
                                            代理品牌:<input type="radio" <if condition="$goodsInfo[manage_type] eq 1">checked="checked"</if> value="1" name="manage_type" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>可提供证件:</td>
                                        <td>
                                            <input type="checkbox" <php>if(in_array('身份证',$papers_arr)){</php>checked="checked"<php>}</php> value="身份证" name="papers[]" />身份证 &nbsp;&nbsp;&nbsp;
                                            <input type="checkbox" <php>if(in_array('手持身份证',$papers_arr)){</php>checked="checked"<php>}</php> value="手持身份证" name="papers[]" />手持身份证&nbsp;&nbsp;&nbsp;
                                            <input type="checkbox" <php>if(in_array('营业执照',$papers_arr)){</php>checked="checked"<php>}</php> value="营业执照" name="papers[]" />营业执照&nbsp;&nbsp;&nbsp;
                                            <input type="checkbox" <php>if(in_array('手持营业执照',$papers_arr)){</php>checked="checked"<php>}</php> value="手持营业执照" name="papers[]" />手持营业执照&nbsp;&nbsp;&nbsp;

                                        </td>
                                    </tr>

                                    <tr>
                                        <td>违规记录</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.weigui_log}" placeholder="示例：1-2-3" name="weigui_log" class="form-control" style="width:350px;"/>
                                            <span id="err_weigui_log" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>动态评分</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.dongtai_score}" placeholder="示例：4.9/4.9/4.9" name="dongtai_score" class="form-control" style="width:350px;"/>
                                            <span id="err_dongtai_score" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>



                                    <!-- <tr>
                                         <td>上传封面图片:</td>
                                         <td>
                                             <input type="button" value="上传图片"  onclick="GetUploadify(1,'','goods','call_back1');"/>
                                             <input type="text" class="input-sm"  name="original_img" id="original_img" value="{$goodsInfo.original_img}"/>
                                             <if condition="$goodsInfo['original_img'] neq null">
                                                 &nbsp;&nbsp;
                                                 <a target="_blank" href="{$goodsInfo.original_img}" id="original_img1">
                                                     <img width="25" height="25" src="/Public/images/image_icon.jpg">
                                                 </a>
                                             </if>
                                             <span id="err_original_img" style="color:#F00; display:none;"></span>
                                         </td>
                                     </tr>-->



                                    <tr>
                                        <td>营业额图片:</td>
                                        <td>
                                            <input type="button" value="上传图片"  onclick="GetUploadify(1,'','goods','call_back2');"/>
                                            <input type="text" class="input-sm"  name="yingyee_img" id="yingyee_img" value="{$goodsInfo.yingyee_img}"/>
                                            <if condition="$goodsInfo['yingyee_img'] neq null">
                                                &nbsp;&nbsp;
                                                <a target="_blank" href="{$goodsInfo.yingyee_img}" id="yingyee_img1">
                                                    <img width="25" height="25" src="/Public/images/image_icon.jpg">
                                                </a>
                                            </if>
                                            <span id="err_yingyee_img" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>一级类目图片:</td>
                                        <td>
                                            <input type="button" value="上传图片"  onclick="GetUploadify(1,'','goods','call_back3');"/>
                                            <input type="text" class="input-sm"  name="yijileimu_img" id="yijileimu_img" value="{$goodsInfo.yijileimu_img}"/>
                                            <if condition="$goodsInfo['yijileimu_img'] neq null">
                                                &nbsp;&nbsp;
                                                <a target="_blank" href="{$goodsInfo.yijileimu_img}" id="yijileimu_img1">
                                                    <img width="25" height="25" src="/Public/images/image_icon.jpg">
                                                </a>
                                            </if>
                                            <span id="err_yijileimu_img" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>历史扣分图片:</td>
                                        <td>
                                            <input type="button" value="上传图片"  onclick="GetUploadify(1,'','goods','call_back4');"/>
                                            <input type="text" class="input-sm"  name="lishikoufen_img" id="lishikoufen_img" value="{$goodsInfo.lishikoufen_img}"/>
                                            <if condition="$goodsInfo['lishikoufen_img'] neq null">
                                                &nbsp;&nbsp;
                                                <a target="_blank" href="{$goodsInfo.lishikoufen_img}" id="lishikoufen_img1">
                                                    <img width="25" height="25" src="/Public/images/image_icon.jpg">
                                                </a>
                                            </if>
                                            <span id="err_lishikoufen_img" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>续签考核图片:</td>
                                        <td>
                                            <input type="button" value="上传图片"  onclick="GetUploadify(1,'','goods','call_back5');"/>
                                            <input type="text" class="input-sm"  name="xuqiankaoke_img" id="xuqiankaoke_img" value="{$goodsInfo.xuqiankaoke_img}"/>
                                            <if condition="$goodsInfo['xuqiankaoke_img'] neq null">
                                                &nbsp;&nbsp;
                                                <a target="_blank" href="{$goodsInfo.xuqiankaoke_img}" id="xuqiankaoke_img1">
                                                    <img width="25" height="25" src="/Public/images/image_icon.jpg">
                                                </a>
                                            </if>
                                            <span id="err_xuqiankaoke_img" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>



                                    <tr>
                                        <td>商标名称:</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.brand_name}" placeholder="多个用,隔开"  name="brand_name" class="form-control" style="width:550px;"/>
                                            <span id="err_brand_name" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>商标所属类别:</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.brand_info}" placeholder="示例：1,3,5  多个用,隔开"  name="brand_info" class="form-control" style="width:550px;"/>
                                            <span id="err_brand_name" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>

                                    <tr>
                                        <td>商标持有者:</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.brand_holder}" name="brand_holder" class="form-control" style="width:550px;"/>
                                            <span id="err_brand_holder" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>商标持有者类型:</td>
                                        <td>
                                            公司:<input type="radio" <if condition="$goodsInfo[brand_holder_type] eq 0">checked="checked"</if> value="0" name="brand_holder_type" />&nbsp;&nbsp;&nbsp;
                                            法人:<input type="radio" <if condition="$goodsInfo[brand_holder_type] eq 1">checked="checked"</if> value="1" name="brand_holder_type" />&nbsp;&nbsp;&nbsp;
                                            其他人:<input type="radio" <if condition="$goodsInfo[brand_holder_type] eq 2">checked="checked"</if> value="2" name="brand_holder_type" />&nbsp;&nbsp;&nbsp;
                                        </td>
                                    </tr>

                                    <tr>
                                        <td>商标是否过户:</td>
                                        <td>
                                            否:<input type="radio" <if condition="$goodsInfo[is_shift] eq 0">checked="checked"</if> value="0" name="is_shift" />&nbsp;&nbsp;&nbsp;
                                            是:<input type="radio" <if condition="$goodsInfo[is_shift] eq 1">checked="checked"</if> value="1" name="is_shift" />
                                        </td>
                                    </tr>

                                    <tr>
                                        <td> 是否存在债务纠纷:</td>
                                        <td>
                                            无:<input type="radio" <if condition="$goodsInfo[zw_status] eq 0">checked="checked"</if> value="0" name="zw_status" />&nbsp;&nbsp;&nbsp;
                                            有:<input type="radio" <if condition="$goodsInfo[zw_status] eq 1">checked="checked"</if> value="1" name="zw_status" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>月利润:</td>
                                        <td>
                                            无:<input type="radio" <if condition="$goodsInfo[y_profit] eq 0">checked="checked"</if> value="0" name="y_profit" />&nbsp;&nbsp;&nbsp;
                                            有:<input type="radio" <if condition="$goodsInfo[y_profit] eq 1">checked="checked"</if> value="1" name="y_profit" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>是否带货出售:</td>
                                        <td>
                                            否:<input type="radio" <if condition="$goodsInfo[cum_goods] eq 0">checked="checked"</if> value="0" name="cum_goods" />&nbsp;&nbsp;&nbsp;
                                            是:<input type="radio" <if condition="$goodsInfo[cum_goods] eq 1">checked="checked"</if> value="1" name="cum_goods" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td> 是否提供货源:</td>
                                        <td>
                                            否:<input type="radio" <if condition="$goodsInfo[hy_status] eq 0">checked="checked"</if> value="0" name="hy_status" />&nbsp;&nbsp;&nbsp;
                                            是:<input type="radio" <if condition="$goodsInfo[hy_status] eq 1">checked="checked"</if> value="1" name="hy_status" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>是否带团队转让 :</td>
                                        <td>
                                            否:<input type="radio" <if condition="$goodsInfo[zrtd_status] eq 0">checked="checked"</if> value="0" name="zrtd_status" />&nbsp;&nbsp;&nbsp;
                                            是:<input type="radio" <if condition="$goodsInfo[zrtd_status] eq 1">checked="checked"</if> value="1" name="zrtd_status" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>是否授权经营经验 :</td>
                                        <td>
                                            否:<input type="radio" <if condition="$goodsInfo[jyjy_status] eq 0">checked="checked"</if> value="0" name="jyjy_status" />&nbsp;&nbsp;&nbsp;
                                            是:<input type="radio" <if condition="$goodsInfo[jyjy_status] eq 1">checked="checked"</if> value="1" name="jyjy_status" />
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                                <table id="jd_table" class="table table-bordered"   >
                                    <tbody>

                                    <tr >
                                        <td>商标类型:</td>
                                        <td>
                                            <select name="store_type"  class="form-control" style="width:250px;">
                                                <option value="0">选择商标类型</option>
                                                <foreach name="storeType_tm" item="vv1" key="kk1" >
                                                    <option value="{$kk1}"<if condition="$goodsInfo[store_type] eq $kk1"> selected="selected" </if> >{$vv1}</option>
                                                </foreach>
                                            </select>
                                        </td>
                                    </tr>
                                    <tr >
                                        <td>注册类型:</td>
                                        <td>
                                            <select name="store_type" class="form-control" style="width:250px;">
                                                <option value="0">选择注册类型</option>
                                                <foreach name="storeType_jd" item="vv2" key="kk2" >
                                                    <option value="{$kk2}"<if condition="$goodsInfo[store_type] eq $kk2"> selected="selected" </if> >{$vv2}</option>
                                                </foreach>
                                            </select>
                                        </td>
                                    </tr>
                                    <tr >
                                        <td>商标类型:</td>
                                        <td>
                                            <select name="brand_type" id="brand_type" class="form-control" style="width:250px;">
                                                <option value="0">选择商标类型</option>
                                                <foreach name="brandType" item="vo" key="k" >
                                                    <option value="{$k}"<if condition="$goodsInfo[brand_type] eq $k"> selected="selected" </if> >{$vo}</option>
                                                </foreach>
                                            </select>

                                        </td>
                                    </tr>


                                    <tr>
                                        <td>所属行业:</td>

                                        <td>
                                            <select name="trade_type" id="trade_type" class="form-control" style="width:250px;">
                                                <option value="0">选择所属行业</option>
                                                <foreach name="goodsTrade" item="vo1" key="k1" >
                                                    <option value="{$k1}"<if condition="$goodsInfo[trade_type] eq $k1"> selected="selected" </if> >{$vo1}</option>
                                                </foreach>
                                            </select>

                                            <span id="err_trade_type" style="color:#F00; display:none;"></span>

                                        </td>
                                    </tr>

                                    <tr>
                                        <td>所在地区:</td>

                                        <td>
                                            <select name="area_type" id="area_type" class="form-control" style="width:250px;">
                                                <option value="0">选择所在地区</option>
                                                <foreach name="goodsArea" item="vo2" key="k2" >
                                                    <option value="{$k2}"<if condition="$goodsInfo[area_type] eq $k2"> selected="selected" </if> >{$vo2}</option>
                                                </foreach>
                                            </select>

                                            <span id="err_area_type" style="color:#F00; display:none;"></span>

                                        </td>
                                    </tr>
                                    <tr>
                                        <td>价格区间:</td>
                                        <td>
                                            <select name="price_type" id="price_type" class="form-control" style="width:250px;">
                                                <option value="0">选择价格区间</option>
                                                <foreach name="priceType" item="vo3" key="k3" >
                                                    <option value="{$k3}"<if condition="$goodsInfo[price_type] eq $k3"> selected="selected" </if> >{$vo3}</option>
                                                </foreach>
                                            </select>

                                            <span id="err_price_type" style="color:#F00; display:none;"></span>

                                        </td>
                                    </tr>





                                    <tr>
                                        <td>店铺名称:</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.seller_name}" name="seller_name" class="form-control" style="width:550px;"/>
                                            <span id="err_seller_name" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>店铺信息标题:</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.seller_title}" name="seller_title" class="form-control" style="width:550px;"/>
                                            <span id="err_seller_title" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>


                                    <tr>
                                        <td>店铺详细描述:</td>
                                        <td>

                                            <textarea rows="6" cols="80" name="seller_describe">{$goodsInfo.seller_describe}</textarea>
                                            <span id="err_seller_describe" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>卖家寄语:</td>
                                        <td>

                                            <textarea rows="6" cols="80" name="seller_send_word">{$goodsInfo.seller_send_word}</textarea>
                                            <span id="err_seller_send_word" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>

                                    <tr>
                                        <td>开店时间</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.start_time}" readonly name="start_time" id="start_time" class="form-control" style="width:350px;"/>
                                            <span id="err_start_time" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>

                                    <tr>
                                        <td>一级类目:</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.epmi}" placeholder="多个类目用,隔开" name="epmi" class="form-control" style="width:550px;"/>
                                            <span id="err_epmi" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>当前主营</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.now_business}" placeholder="当前主营." name="now_business" class="form-control" style="width:350px;"/>
                                            <span id="err_now_business" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>

                                    <!--   <tr>
                                           <td>地址:</td>
                                           <td>
                                               <div class="form-group ">
                                                   <div class="col-xs-2">
                                                       <select onchange="get_city(this)" id="province" name="province" class="form-control">
                                                           <option  value="0">选择省份</option>
                                                           <volist name="province" id="vo">
                                                               <option value="{$vo.id}" <if condition="$goodsInfo['province'] eq $vo[id]">selected="selected" </if> >{$vo.name}</option>
                                                           </volist>
                                                       </select>
                                                   </div>
                                                   <div class="col-xs-2">
                                                       <select onchange="get_area(this)" id="city" name="city" class="form-control">
                                                           <option value="0">选择城市</option>
                                                           <volist name="city" id="vo">
                                                               <option value="{$vo.id}" <if condition="$goodsInfo['city'] eq $vo[id]">selected="selected" </if> >{$vo.name}</option>
                                                           </volist>
                                                       </select>
                                                   </div>


                                                   &lt;!&ndash;<div class="col-xs-2">
                                                       <select id="district" name="district" class="form-control">
                                                           <option value="0">选择区域</option>
                                                           <volist name="area" id="vo">
                                                               <option value="{$vo.id}" <if condition="$goodsInfo['district'] eq $vo[id]">selected="selected" </if>>{$vo.name}</option>
                                                           </volist>
                                                       </select>
                                                   </div>&ndash;&gt;
                                               </div>
                                               <span id="err_district" style="color:#F00; display:none;"></span>

                                           </td>
                                       </tr>-->
                                    <tr>
                                        <td>店铺详细地址</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.address}" name="address" class="form-control" style="width:350px;"/>
                                            <span id="err_address" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>


                                    <tr>
                                        <td>特价商品:</td>
                                        <td>
                                            否:<input type="radio" <if condition="$goodsInfo[ is_discount] eq 0">checked="checked"</if> value="0" name=" is_discount" />&nbsp;&nbsp;&nbsp;
                                            是:<input type="radio" <if condition="$goodsInfo[ is_discount] eq 1">checked="checked"</if> value="1" name=" is_discount" />
                                        </td>
                                    </tr>

                                    <tr>
                                        <td>售价</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.price}" name="price" class="form-control" style="width:350px;"/>
                                            <span id="err_price" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>

                                    <!--<tr>
                                        <td>特价<br/><span style="color:red">(此处输入价格时，按照此价格计算)</span></td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.sp_price}" name="sp_price" class="form-control" style="width:350px;"/>
                                        </td>
                                    </tr>-->
                                    <tr>
                                        <td>保证金</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.b_price}" name="b_price" class="form-control" style="width:350px;"/>
                                            <span id="err_b_price" style="color:#F00; display:none;"></span>

                                            可退:<input type="radio" <if condition="$goodsInfo[b_price_type] eq 0">checked="checked"</if> value="0" name="b_price_type" />&nbsp;&nbsp;&nbsp;
                                            不可退:<input type="radio" <if condition="$goodsInfo[b_price_type] eq 1">checked="checked"</if> value="1" name="b_price_type" />
                                        </td>
                                    </tr>

                                    <tr>
                                        <td>技术年费</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.j_price}" name="j_price" class="form-control" style="width:350px;"/>
                                            <span id="err_j_price" style="color:#F00; display:none;"></span>

                                            可退:<input type="radio" <if condition="$goodsInfo[j_price_type] eq 0">checked="checked"</if> value="0" name="j_price_type" />&nbsp;&nbsp;&nbsp;
                                            不可退:<input type="radio" <if condition="$goodsInfo[j_price_type] eq 1">checked="checked"</if> value="1" name="j_price_type" />
                                        </td>
                                    </tr>

                                    <tr>
                                        <td>信用额度</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.xinyong_price}" placeholder="信用额度" name="xinyong_price" class="form-control" style="width:350px;"/>
                                            <span id="err_xinyong_price" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>



                                    <tr>
                                        <td>使用中贷款</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.dk_price}" placeholder="使用中贷款" name="dk_price" class="form-control" style="width:350px;"/>
                                            <span id="err_dk_price" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>完成营业额指标</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.acc_money}" placeholder="完成营业额指标" name="acc_money" class="form-control" style="width:350px;"/>
                                            <span id="err_acc_money" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>


                                    <tr>
                                        <td>是否自有品牌:</td>
                                        <td>
                                            自有品牌:<input type="radio" <if condition="$goodsInfo[manage_type] eq 0">checked="checked"</if> value="0" name="manage_type" />&nbsp;&nbsp;&nbsp;
                                            代理品牌:<input type="radio" <if condition="$goodsInfo[manage_type] eq 1">checked="checked"</if> value="1" name="manage_type" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>可提供证件:</td>
                                        <td>
                                            <input type="checkbox" <php>if(in_array('身份证',$papers_arr)){</php>checked="checked"<php>}</php> value="身份证" name="papers[]" />身份证 &nbsp;&nbsp;&nbsp;
                                            <input type="checkbox" <php>if(in_array('手持身份证',$papers_arr)){</php>checked="checked"<php>}</php> value="手持身份证" name="papers[]" />手持身份证&nbsp;&nbsp;&nbsp;
                                            <input type="checkbox" <php>if(in_array('营业执照',$papers_arr)){</php>checked="checked"<php>}</php> value="营业执照" name="papers[]" />营业执照&nbsp;&nbsp;&nbsp;
                                            <input type="checkbox" <php>if(in_array('手持营业执照',$papers_arr)){</php>checked="checked"<php>}</php> value="手持营业执照" name="papers[]" />手持营业执照&nbsp;&nbsp;&nbsp;

                                        </td>
                                    </tr>

                                    <tr>
                                        <td>违规记录</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.weigui_log}" placeholder="示例：1-2-3" name="weigui_log" class="form-control" style="width:350px;"/>
                                            <span id="err_weigui_log" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>动态评分</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.dongtai_score}" placeholder="示例：4.9/4.9/4.9" name="dongtai_score" class="form-control" style="width:350px;"/>
                                            <span id="err_dongtai_score" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>



                                    <!-- <tr>
                                         <td>上传封面图片:</td>
                                         <td>
                                             <input type="button" value="上传图片"  onclick="GetUploadify(1,'','goods','call_back1');"/>
                                             <input type="text" class="input-sm"  name="original_img" id="original_img" value="{$goodsInfo.original_img}"/>
                                             <if condition="$goodsInfo['original_img'] neq null">
                                                 &nbsp;&nbsp;
                                                 <a target="_blank" href="{$goodsInfo.original_img}" id="original_img1">
                                                     <img width="25" height="25" src="/Public/images/image_icon.jpg">
                                                 </a>
                                             </if>
                                             <span id="err_original_img" style="color:#F00; display:none;"></span>
                                         </td>
                                     </tr>-->



                                    <tr>
                                        <td>营业额图片:</td>
                                        <td>
                                            <input type="button" value="上传图片"  onclick="GetUploadify(1,'','goods','call_back2');"/>
                                            <input type="text" class="input-sm"  name="yingyee_img" id="yingyee_img" value="{$goodsInfo.yingyee_img}"/>
                                            <if condition="$goodsInfo['yingyee_img'] neq null">
                                                &nbsp;&nbsp;
                                                <a target="_blank" href="{$goodsInfo.yingyee_img}" id="yingyee_img1">
                                                    <img width="25" height="25" src="/Public/images/image_icon.jpg">
                                                </a>
                                            </if>
                                            <span id="err_yingyee_img" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>一级类目图片:</td>
                                        <td>
                                            <input type="button" value="上传图片"  onclick="GetUploadify(1,'','goods','call_back3');"/>
                                            <input type="text" class="input-sm"  name="yijileimu_img" id="yijileimu_img" value="{$goodsInfo.yijileimu_img}"/>
                                            <if condition="$goodsInfo['yijileimu_img'] neq null">
                                                &nbsp;&nbsp;
                                                <a target="_blank" href="{$goodsInfo.yijileimu_img}" id="yijileimu_img1">
                                                    <img width="25" height="25" src="/Public/images/image_icon.jpg">
                                                </a>
                                            </if>
                                            <span id="err_yijileimu_img" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>历史扣分图片:</td>
                                        <td>
                                            <input type="button" value="上传图片"  onclick="GetUploadify(1,'','goods','call_back4');"/>
                                            <input type="text" class="input-sm"  name="lishikoufen_img" id="lishikoufen_img" value="{$goodsInfo.lishikoufen_img}"/>
                                            <if condition="$goodsInfo['lishikoufen_img'] neq null">
                                                &nbsp;&nbsp;
                                                <a target="_blank" href="{$goodsInfo.lishikoufen_img}" id="lishikoufen_img1">
                                                    <img width="25" height="25" src="/Public/images/image_icon.jpg">
                                                </a>
                                            </if>
                                            <span id="err_lishikoufen_img" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>续签考核图片:</td>
                                        <td>
                                            <input type="button" value="上传图片"  onclick="GetUploadify(1,'','goods','call_back5');"/>
                                            <input type="text" class="input-sm"  name="xuqiankaoke_img" id="xuqiankaoke_img" value="{$goodsInfo.xuqiankaoke_img}"/>
                                            <if condition="$goodsInfo['xuqiankaoke_img'] neq null">
                                                &nbsp;&nbsp;
                                                <a target="_blank" href="{$goodsInfo.xuqiankaoke_img}" id="xuqiankaoke_img1">
                                                    <img width="25" height="25" src="/Public/images/image_icon.jpg">
                                                </a>
                                            </if>
                                            <span id="err_xuqiankaoke_img" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>



                                    <tr>
                                        <td>商标名称:</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.brand_name}" placeholder="多个用,隔开"  name="brand_name" class="form-control" style="width:550px;"/>
                                            <span id="err_brand_name" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>商标所属类别:</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.brand_info}" placeholder="示例：1,3,5  多个用,隔开"  name="brand_info" class="form-control" style="width:550px;"/>
                                            <span id="err_brand_name" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>

                                    <tr>
                                        <td>商标持有者:</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.brand_holder}" name="brand_holder" class="form-control" style="width:550px;"/>
                                            <span id="err_brand_holder" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>商标持有者类型:</td>
                                        <td>
                                            公司:<input type="radio" <if condition="$goodsInfo[brand_holder_type] eq 0">checked="checked"</if> value="0" name="brand_holder_type" />&nbsp;&nbsp;&nbsp;
                                            法人:<input type="radio" <if condition="$goodsInfo[brand_holder_type] eq 1">checked="checked"</if> value="1" name="brand_holder_type" />&nbsp;&nbsp;&nbsp;
                                            其他人:<input type="radio" <if condition="$goodsInfo[brand_holder_type] eq 2">checked="checked"</if> value="2" name="brand_holder_type" />&nbsp;&nbsp;&nbsp;
                                        </td>
                                    </tr>

                                    <tr>
                                        <td>商标是否过户:</td>
                                        <td>
                                            否:<input type="radio" <if condition="$goodsInfo[is_shift] eq 0">checked="checked"</if> value="0" name="is_shift" />&nbsp;&nbsp;&nbsp;
                                            是:<input type="radio" <if condition="$goodsInfo[is_shift] eq 1">checked="checked"</if> value="1" name="is_shift" />
                                        </td>
                                    </tr>

                                    <tr>
                                        <td> 是否存在债务纠纷:</td>
                                        <td>
                                            无:<input type="radio" <if condition="$goodsInfo[zw_status] eq 0">checked="checked"</if> value="0" name="zw_status" />&nbsp;&nbsp;&nbsp;
                                            有:<input type="radio" <if condition="$goodsInfo[zw_status] eq 1">checked="checked"</if> value="1" name="zw_status" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>月利润:</td>
                                        <td>
                                            无:<input type="radio" <if condition="$goodsInfo[y_profit] eq 0">checked="checked"</if> value="0" name="y_profit" />&nbsp;&nbsp;&nbsp;
                                            有:<input type="radio" <if condition="$goodsInfo[y_profit] eq 1">checked="checked"</if> value="1" name="y_profit" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>是否带货出售:</td>
                                        <td>
                                            否:<input type="radio" <if condition="$goodsInfo[cum_goods] eq 0">checked="checked"</if> value="0" name="cum_goods" />&nbsp;&nbsp;&nbsp;
                                            是:<input type="radio" <if condition="$goodsInfo[cum_goods] eq 1">checked="checked"</if> value="1" name="cum_goods" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td> 是否提供货源:</td>
                                        <td>
                                            否:<input type="radio" <if condition="$goodsInfo[hy_status] eq 0">checked="checked"</if> value="0" name="hy_status" />&nbsp;&nbsp;&nbsp;
                                            是:<input type="radio" <if condition="$goodsInfo[hy_status] eq 1">checked="checked"</if> value="1" name="hy_status" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>是否带团队转让 :</td>
                                        <td>
                                            否:<input type="radio" <if condition="$goodsInfo[zrtd_status] eq 0">checked="checked"</if> value="0" name="zrtd_status" />&nbsp;&nbsp;&nbsp;
                                            是:<input type="radio" <if condition="$goodsInfo[zrtd_status] eq 1">checked="checked"</if> value="1" name="zrtd_status" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>是否授权经营经验 :</td>
                                        <td>
                                            否:<input type="radio" <if condition="$goodsInfo[jyjy_status] eq 0">checked="checked"</if> value="0" name="jyjy_status" />&nbsp;&nbsp;&nbsp;
                                            是:<input type="radio" <if condition="$goodsInfo[jyjy_status] eq 1">checked="checked"</if> value="1" name="jyjy_status" />
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>







                            </div>

                            <div class="tab-pane  " id="tab_gongsi">

                                <table class="table table-bordered">
                                    <tbody>
                                    <tr>
                                        <td>公司名称:</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.company_name}" name="company_name" class="form-control" style="width:550px;"/>
                                            <span id="err_company_name" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>注册时间:</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.company_reg_time}" readonly id="company_reg_time" name="company_reg_time" class="form-control" style="width:550px;"/>
                                            <span id="err_company_reg_time" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>注册资金:</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.reg_money}" style="width: 120px;" name="reg_money" class="form-control" style="width:550px;"/>万元
                                            <span id="err_reg_money" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>公司法人:</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.company_legal_per}" name="company_legal_per" class="form-control" style="width:550px;"/>
                                            <span id="err_company_legal_per" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>纳税人资质:</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.taxpayer_qualification}" name="taxpayer_qualification" class="form-control" style="width:550px;"/>
                                            <span id="err_taxpayer_qualification" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>年报状态:</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.annals_info}" name="annals_info" class="form-control" style="width:550px;"/>
                                            <span id="err_annals_info" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>股东人数:</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.shareholder_num}" name="shareholder_num" class="form-control" style="width:550px;"/>
                                            <span id="err_shareholder_num" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>法院公告:</td>
                                        <td>
                                            有:<input type="radio" <if condition="$goodsInfo[fy_gonggao] eq 1">checked="checked"</if> value="1" name="fy_gonggao" />
                                            无:<input type="radio" <if condition="$goodsInfo[fy_gonggao] eq 0">checked="checked"</if> value="0" name="fy_gonggao" />
                                        </td>
                                    </tr>

                                    <tr>
                                        <td>法院判决:</td>
                                        <td>
                                            有:<input type="radio" <if condition="$goodsInfo[fy_panjue] eq 1">checked="checked"</if> value="1" name="fy_panjue" />
                                            无:<input type="radio" <if condition="$goodsInfo[fy_panjue] eq 0">checked="checked"</if> value="0" name="fy_panjue" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>失信信息:</td>
                                        <td>
                                            有:<input type="radio" <if condition="$goodsInfo[sx_info] eq 1">checked="checked"</if> value="1" name="sx_info" />
                                            无:<input type="radio" <if condition="$goodsInfo[sx_info] eq 0">checked="checked"</if> value="0" name="sx_info" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>行政处罚:</td>
                                        <td>
                                            有:<input type="radio" <if condition="$goodsInfo[xz_chufa] eq 1">checked="checked"</if> value="1" name="xz_chufa" />
                                            无:<input type="radio" <if condition="$goodsInfo[xz_chufa] eq 0">checked="checked"</if> value="0" name="xz_chufa" />
                                        </td>
                                    </tr>


                                    <tr>
                                        <td>经营状态:</td>
                                        <td>
                                            正常:<input type="radio" <if condition="$goodsInfo[jy_status] eq 0">checked="checked"</if> value="0" name="jy_status" />
                                            停售:<input type="radio" <if condition="$goodsInfo[jy_status] eq 1">checked="checked"</if> value="1" name="jy_status" />
                                        </td>
                                    </tr>



                                    <tr>
                                        <td>税务状态:</td>
                                        <td>
                                            正常:<input type="radio" <if condition="$goodsInfo[cw_status] eq 0">checked="checked"</if> value="0" name="cw_status" />
                                            不正常:<input type="radio" <if condition="$goodsInfo[cw_status] eq 1">checked="checked"</if> value="1" name="cw_status" />
                                        </td>
                                    </tr>




                                    </tbody>
                                </table>
                            </div>
                            <!--<div class="tab-pane" id="tab_goods_attr">-->
                            <!--<table class="table table-bordered" id="goods_attr_table">-->
                            <!--<tr>-->
                            <!--<td>店铺属性:</td>-->
                            <!--<td>-->
                            <!--<select name="goods_type" id="goods_type" class="form-control" style="width:250px;">-->
                            <!--<option value="0">选择商品属性</option>-->
                            <!--<foreach name="goodsType" item="vo" key="k" >-->
                            <!--<option value="{$vo.id}"<if condition="$goodsInfo[goods_type] eq $vo[id]"> selected="selected" </if> >{$vo.name}</option>-->
                            <!--</foreach>-->
                            <!--</select>-->
                            <!--</td>-->
                            <!--<span id="err_goods_type" style="color:#F00; display:none;"></span>-->
                            <!--</tr>-->



                            <!--<table class="table table-bordered"  >-->
                            <!--  <tr>
                                  <td>所在平台:</td>

                                  <td>
                                      <select name="goods_type" id="goods_type" onchange="set_goods_attr()" class="form-control" style="width:250px;">
                                          <option value="0">选择商品属性</option>
                                          <foreach name="goodsType" item="vo" key="k" >
                                              <option value="{$vo.id}"<if condition="$goodsInfo[goods_type] eq $vo[id]"> selected="selected" </if> >{$vo.name}</option>
                                          </foreach>
                                      </select>
                                      <span id="err_goods_type" style="color:#F00; display:none;"></span>
                                  </td>
                              </tr>

                                  <tr id="tm_tr" style="display: none">
                                      <td>商标类型:</td>
                                      <td>
                                          <select name="store_type"  class="form-control" style="width:250px;">
                                              <option value="0">选择商标类型</option>
                                              <foreach name="storeType_tm" item="vv1" key="kk1" >
                                                  <option value="{$kk1}"<if condition="$goodsInfo[store_type] eq $kk1"> selected="selected" </if> >{$vv1}</option>
                                              </foreach>
                                          </select>
                                      </td>
                                  </tr>
                                  <tr id="jd_tr" style="display: none" >
                                      <td>注册类型:</td>
                                      <td>
                                          <select name="store_type" class="form-control" style="width:250px;">
                                              <option value="0">选择注册类型</option>
                                              <foreach name="storeType_jd" item="vv2" key="kk2" >
                                                  <option value="{$kk2}"<if condition="$goodsInfo[store_type] eq $kk2"> selected="selected" </if> >{$vv2}</option>
                                              </foreach>
                                          </select>
                                      </td>
                                  </tr>
                              <tr >
                                  <td>商标类型:</td>
                                  <td>
                                      <select name="brand_type" id="brand_type" class="form-control" style="width:250px;">
                                          <option value="0">选择商标类型</option>
                                          <foreach name="brandType" item="vo" key="k" >
                                              <option value="{$k}"<if condition="$goodsInfo[brand_type] eq $k"> selected="selected" </if> >{$vo}</option>
                                          </foreach>
                                      </select>

                                  </td>
                              </tr>


                              <tr>
                                  <td>所属行业:</td>

                                  <td>
                                      <select name="trade_type" id="trade_type" class="form-control" style="width:250px;">
                                          <option value="0">选择所属行业</option>
                                          <foreach name="goodsTrade" item="vo1" key="k1" >
                                              <option value="{$k1}"<if condition="$goodsInfo[trade_type] eq $k1"> selected="selected" </if> >{$vo1}</option>
                                          </foreach>
                                      </select>

                                      <span id="err_trade_type" style="color:#F00; display:none;"></span>

                                  </td>
                              </tr>

                              <tr>
                                  <td>所在地区:</td>

                                  <td>
                                      <select name="area_type" id="area_type" class="form-control" style="width:250px;">
                                          <option value="0">选择所在地区</option>
                                          <foreach name="goodsArea" item="vo2" key="k2" >
                                              <option value="{$k2}"<if condition="$goodsInfo[area_type] eq $k2"> selected="selected" </if> >{$vo2}</option>
                                          </foreach>
                                      </select>

                                      <span id="err_area_type" style="color:#F00; display:none;"></span>

                                  </td>
                              </tr>
                              <tr>
                                  <td>价格区间:</td>
                                  <td>
                                      <select name="price_type" id="price_type" class="form-control" style="width:250px;">
                                          <option value="0">选择价格区间</option>
                                          <foreach name="priceType" item="vo3" key="k3" >
                                              <option value="{$k3}"<if condition="$goodsInfo[price_type] eq $k3"> selected="selected" </if> >{$vo3}</option>
                                          </foreach>
                                      </select>

                                      <span id="err_price_type" style="color:#F00; display:none;"></span>

                                  </td>
                              </tr>-->

                            <!--</table>-->
                            <!--</table>-->
                            <!--</div>-->

                            <div class="tab-pane" id="tab_buyer">
                                <table class="table table-bordered">
                                    <tbody>
                                    <tr>
                                        <td>用户id</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.user_id}" readonly name="user_id" class="form-control" style="width:550px;"/>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>用户名:</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.user_id|get_user_name}" readonly  class="form-control" style="width:550px;"/>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>电话:</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.user_id|get_user_mobile}" readonly  class="form-control" style="width:550px;"/>
                                        </td>
                                    </tr>

                                    <!--  <tr>
                                          <td>网店地址:</td>
                                          <td>
                                              <input type="text" value="{$goodsInfo.seller_link}"  readonly class="form-control" style="width:550px;"/>
                                          </td>
                                      </tr>-->
                                    <tr>
                                        <td>预售价格:</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.ys_price}" readonly  class="form-control" style="width:550px;"/>
                                        </td>
                                    </tr>
                                    <!--  <tr>
                                          <td>密码:</td>
                                          <td>
                                              <input type="text" value="{$goodsInfo.account_pwd}" readonly class="form-control" style="width:550px;"/>
                                          </td>
                                      </tr>-->


                                    </tbody>
                                </table>
                            </div>










                        </div>
                        <div class="pull-right">
                            <input type="hidden" name="goods_id" value="{$goodsInfo.goods_id}">
                            <button class="btn btn-primary" onclick="ajax_submit_form('addEditGoodsForm','{:U('Goods/addEditGoods?is_ajax=1')}');" title="" data-toggle="tooltip" type="button" data-original-title="保存">保存</button>
                        </div>
                    </form><!--表单数据-->
                </div>
            </div>
        </div>    <!-- /.content -->
    </section>
</div>






<script>



    function set_goods_attr() {

        var goods_type =$('#goods_type').val();
        if(goods_type==3) { /*天猫*/
            $('#tm_tr').show();
            $('#jd_tr').hide();
        }
        if(goods_type==4||goods_type==6) { /*淘宝*/
            $('#tm_tr').hide();
            $('#jd_tr').hide();
        }
        if(goods_type==5) { /*京东*/
            $('#tm_tr').hide();
            $('#jd_tr').show();
        }
    }



    $('#start_time').daterangepicker({
        format:"YYYY/MM/DD",
        singleDatePicker: true,
        showDropdowns: true,
        minDate:'2001/01/01',
        maxDate:'2030/01/01',
        startDate:'2010/01/01',
        locale : {
            applyLabel : '确定',
            cancelLabel : '取消',
            fromLabel : '起始时间',
            toLabel : '结束时间',
            customRangeLabel : '自定义',
            daysOfWeek : [ '日', '一', '二', '三', '四', '五', '六' ],
            monthNames : [ '一月', '二月', '三月', '四月', '五月', '六月','七月', '八月', '九月', '十月', '十一月', '十二月' ],
            firstDay : 1
        }
    });

    $('#company_reg_time').daterangepicker({
        format:"YYYY/MM/DD",
        singleDatePicker: true,
        showDropdowns: true,
        minDate:'2001/01/01',
        maxDate:'2030/01/01',
        startDate:'2010/01/01',
        locale : {
            applyLabel : '确定',
            cancelLabel : '取消',
            fromLabel : '起始时间',
            toLabel : '结束时间',
            customRangeLabel : '自定义',
            daysOfWeek : [ '日', '一', '二', '三', '四', '五', '六' ],
            monthNames : [ '一月', '二月', '三月', '四月', '五月', '六月','七月', '八月', '九月', '十月', '十一月', '十二月' ],
            firstDay : 1
        }
    });


    $(document).ready(function(){
        $(":checkbox[cka]").click(function(){
            var $cks = $(":checkbox[ck='"+$(this).attr("cka")+"']");
            if($(this).is(':checked')){
                $cks.each(function(){$(this).prop("checked",true);});
            }else{
                $cks.each(function(){$(this).removeAttr('checked');});
            }
        });
    });

    function choosebox(o){
        var vt = $(o).is(':checked');
        if(vt){
            $('input[type=checkbox]').prop('checked',vt);
        }else{
            $('input[type=checkbox]').removeAttr('checked');
        }
    }

    // 上传商品图片成功回调函数
    function call_back1(fileurl_tmp){
        $("#original_img").val(fileurl_tmp);
        $("#original_img1").attr('href', fileurl_tmp);
    }
    // 上传商品图片成功回调函数
    function call_back2(fileurl_tmp){
        $("#yingyee_img").val(fileurl_tmp);
        $("#yingyee_img1").attr('href', fileurl_tmp);
    }
    // 上传商品图片成功回调函数
    function call_back3(fileurl_tmp){
        $("#yijileimu_img").val(fileurl_tmp);
        $("#yijileimu_img1").attr('href', fileurl_tmp);
    }
    // 上传商品图片成功回调函数
    function call_back4(fileurl_tmp){
        $("#lishikoufen_img").val(fileurl_tmp);
        $("#lishikoufen_img1").attr('href', fileurl_tmp);
    }
    function call_back5(fileurl_tmp){
        $("#xuqiankaoke_img").val(fileurl_tmp);
        $("#xuqiankaoke_img1").attr('href', fileurl_tmp);
    }


    /*
     * 以下是图片上传方法
     */
    // 上传商品图片成功回调函数
    /* function call_back(fileurl_tmp){
     $("#original_img").val(fileurl_tmp);
     $("#original_img2").attr('href', fileurl_tmp);
     }
     */

    /* // 上传商品相册回调函数
     function call_back2(paths){
     var  last_div = $(".goods_xc:last").prop("outerHTML");
     for (i=0;i<paths.length;i++ )
     {
     $(".goods_xc:eq(0)").before(last_div);	// 插入一个 新图片
     $(".goods_xc:eq(0)").find('a:eq(0)').attr('href',paths[i]).attr('onclick','').attr('target', "_blank");// 修改他的链接地址
     $(".goods_xc:eq(0)").find('img').attr('src',paths[i]);// 修改他的图片路径
     $(".goods_xc:eq(0)").find('a:eq(1)').attr('onclick',"ClearPicArr2(this,'"+paths[i]+"')").text('删除');
     $(".goods_xc:eq(0)").find('.goods_images_sortid').removeClass("noshowsortid");

     $(".goods_xc:eq(0)").find('input.goods_images').val(paths[i]); // 设置隐藏域 要提交的值
     $(".goods_xc:eq(0)").find('input.goods_images_sortid').val(i+1); // 设置隐藏域 要提交的值
     }
     }*/
    /*
     * 上传之后删除组图input
     * @access   public
     * @val      string  删除的图片input
     */
    function ClearPicArr2(obj,path)
    {
        $.ajax({
            type:'GET',
            url:"{:U('Admin/Uploadify/delupload')}",
            data:{action:"del", filename:path},
            success:function(){
                $(obj).parent().remove(); // 删除完服务器的, 再删除 html上的图片
            }
        });
        // 删除数据库记录
        $.ajax({
            type:'GET',
            url:"{:U('/Admin/Goods/del_goods_images')}",
            data:{filename:path},
            success:function(){
                //
            }
        });
    }



    /** 以下 商品属性相关 js*/
    $(document).ready(function(){

        $("#goods_temid").change(function(){
            var type_id = $(this).val();
            $.ajax({
                type:'GET',
                data:{type_id:type_id},
                url:"/admin/Goods/ajaxGetSize",
                success:function(data){
                    $("#goods_temid_table").html('');
                    $("#goods_temid_table").append(data);
                }
            });
        });

        $("#goods_size_temid").change(function(){
            var type_id = $(this).val();
            $.ajax({
                type:'GET',
                data:{type_id:type_id},
                url:"/admin/Goods/ajaxGetSize",
                success:function(data){
                    $("#goods_size_temid_table").html('');
                    $("#goods_size_temid_table").append(data);
                }
            });
        });
        // 商品类型切换时 ajax 调用  返回不同的属性输入框
        $("#goods_type").change(function(){
            var goods_id = $("input[name='goods_id']").val();
            var type_id = $(this).val();
            $.ajax({
                type:'GET',
                data:{goods_id:goods_id,type_id:type_id},
                url:"/admin/Goods/ajaxGetAttrInput",
                success:function(data){
                    $("#goods_attr_table tr:gt(0)").remove()
                    $("#goods_attr_table").append(data);
                }
            });
        });
        // 触发商品类型
        $("#goods_type").trigger('change');
        $("input[name='exchange_integral']").blur(function(){
            var shop_price = parseInt($("input[name='shop_price']").val());
            var exchange_integral = parseInt($(this).val());
            if (shop_price * 100 < exchange_integral) {

            }
        });
    });


    // 属性输入框的加减事件
    function addAttr(a)
    {
        var attr = $(a).parent().parent().prop("outerHTML");
        attr = attr.replace('addAttr','delAttr').replace('+','-');
        $(a).parent().parent().after(attr);
    }
    // 属性输入框的加减事件
    function delAttr(a)
    {
        $(a).parent().parent().remove();
    }


    /** 以下 商品规格相关 js*/
    $(document).ready(function(){

        // 商品类型切换时 ajax 调用  返回不同的属性输入框
        $("#spec_type").change(function(){
            var goods_id = '{$goodsInfo.goods_id}';
            var spec_type = $(this).val();
            $.ajax({
                type:'GET',
                data:{goods_id:goods_id,spec_type:spec_type},
                url:"{:U('/admin/Goods/ajaxGetSpecSelect')}",
                success:function(data){
                    $("#ajax_spec_data").html('')
                    $("#ajax_spec_data").append(data);
                    //alert('132');
                    ajaxGetSpecInput();	// 触发完  马上处罚 规格输入框
                }
            });
        });
        // 触发商品规格
        $("#spec_type").trigger('change');
    });

    /** 以下是编辑时默认选中某个商品分类*/
    $(document).ready(function(){

        <if condition="$level_cat['2'] gt 0">
            // 商品分类第二个下拉菜单
            get_category('{$level_cat[1]}','cat_id_2','{$level_cat[2]}');
        </if>
        <if condition="$level_cat['3'] gt 0">
            // 商品分类第二个下拉菜单
            get_category('{$level_cat[2]}','cat_id_3','{$level_cat[3]}');
        </if>

        //  扩展分类
        <if condition="$level_cat2['2'] gt 0">
            // 商品分类第二个下拉菜单
            get_category('{$level_cat2[1]}','extend_cat_id_2','{$level_cat2[2]}');
        </if>
        <if condition="$level_cat2['3'] gt 0">
            // 商品分类第二个下拉菜单
            get_category('{$level_cat2[2]}','extend_cat_id_3','{$level_cat2[3]}');
        </if>

    });

</script>
</body>
</html>